package com.remote.module.feign;

import com.remote.module.dto.TestDto;
import org.springframework.cloud.openfeign.FallbackFactory;
import org.springframework.stereotype.Component;

@Component
public class FeignServerImpl implements FallbackFactory<FeignServer> {

    @Override
    public FeignServer create(Throwable cause) {
        return new FeignServer() {
            @Override
            public String test(TestDto body) {
                System.out.println("fail--------------");
                return null;
            }
        };
    }

}
